Skip to content

Added Bun runtime template#28

Closed
omnaiduu wants to merge 25 commits intoremix-run:js-templatefrom
omnaiduu:main
Closed

Added Bun runtime template#28
omnaiduu wants to merge 25 commits intoremix-run:js-templatefrom
omnaiduu:main

Conversation

@omnaiduu
Copy link

@omnaiduu omnaiduu commented Dec 9, 2024

This pull request introduces a template for using Bun as a custom server to run applications built with React Router 7. The focus is on leveraging Bun's built-in HTTP server to efficiently handle routing and server-side tasks in a React environment

The primary goal of this pull request is to provide developers with a ready-to-use example for running React Router 7 on the Bun runtime.

Files Added/Modified
Template Files: Added files to set up and configure the Bun custom server.

  • entry.server.tsx uses readablestream
  • server/app uses bun server.

Clone the repository and navigate to the new template directory.

  • run bun install
  • bun run dev or bun run build
  • bun start

brookslybrand and others added 25 commits November 25, 2024 15:20
except only typecheck for node-postgres so we don't have to spin up a
postgres instance for testing
~1.7m -> ~18s on my MBP M1 Pro
tests: typecheck, dev, build, start across all templates
@brookslybrand brookslybrand deleted the branch remix-run:js-template January 27, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants